package com.renu.jdependencyanalyser.freemarker.data;

import java.util.Objects;

public class Label {
    private int id;
    private String sig;

    public Label(int id, String sig) {
        this.id = id;
        this.sig = sig;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSig() {
        return sig;
    }

    public void setSig(String sig) {
        this.sig = sig;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Label label = (Label) o;
        return Objects.equals(sig, label.sig);
    }

    @Override
    public int hashCode() {
        return Objects.hash(sig);
    }
}
